#ifndef SYNCMESSAGE_H
#define SYNCMESSAGE_H

#include "../utils/message.h"
#include <cstdlib>
#include <cstring>

class SyncMessage : public IMessage {
public:
	const static int MSG_LENGTH = 0;

	SyncMessage(int pType);
	
	~SyncMessage();

	virtual int getLength();
	
	virtual void* getBuffer();
	
	virtual void setBuffer(void* pBuffer , int pSize);
	
	long getMessageType();

private:
	long mType;

	typedef struct msg_buf {
		long type;
	} tMsgBuf;
	
	tMsgBuf* mMsgBuf;
};

#endif
